
package com.xpheng.system.modular.org.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xpheng.common.mybatis.domain.CommonEntity;
import lombok.Getter;
import lombok.Setter;


/**
 * 组织实体
 **/
@Getter
@Setter
@TableName("SYS_ORG")
public class SysOrg extends CommonEntity {

    /**
     * id
     */
    private String id;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 主管id
     */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String directorId;

    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 分类
     */
    private String category;

    /**
     * 排序码
     */
    private Integer sortCode;

    /**
     * 扩展信息
     */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String extJson;
}
